home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / devices / console.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  2KB  |  104 lines

  1. #ifndef DEVICES_CONSOLE_H
  2. #define DEVICES_CONSOLE_H 1
  3. /*
  4. ** console.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/03/95
  11. **
  12. **
  13. */
  14.  
  15.  
  16. #ifndef EXEC_TYPES_H
  17. #include    <exec/types.h>
  18. #endif
  19.  
  20. #ifndef EXEC_IO_H
  21. #include    <exec/io.h>
  22. #endif  /* EXEC_IO_H */
  23.  
  24. /****** Console commands ******/
  25. #define CD_ASKKEYMAP        (CMD_NONSTD+0)
  26. #define CD_SETKEYMAP        (CMD_NONSTD+1)
  27. #define CD_ASKDEFAULTKEYMAP (CMD_NONSTD+2)
  28. #define CD_SETDEFAULTKEYMAP (CMD_NONSTD+3)
  29.  
  30. /****** SGR parameters ******/
  31.  
  32. #define SGR_PRIMARY 0
  33. #define SGR_BOLD    1
  34. #define SGR_ITALIC  3
  35. #define SGR_UNDERSCORE  4
  36. #define SGR_NEGATIVE    7
  37.  
  38. #define SGR_NORMAL  22  /* default foreground color,  not bold */
  39. #define SGR_NOTITALIC   23
  40. #define SGR_NOTUNDERSCORE 24
  41. #define SGR_POSITIVE    27
  42.  
  43. /* these names refer to the ANSI standard,  not the implementation */
  44. #define SGR_BLACK   30
  45. #define SGR_RED     31
  46. #define SGR_GREEN   32
  47. #define SGR_YELLOW  33
  48. #define SGR_BLUE    34
  49. #define SGR_MAGENTA 35
  50. #define SGR_CYAN    36
  51. #define SGR_WHITE   37
  52. #define SGR_DEFAULT 39
  53.  
  54. #define SGR_BLACKBG 40
  55. #define SGR_REDBG   41
  56. #define SGR_GREENBG 42
  57. #define SGR_YELLOWBG    43
  58. #define SGR_BLUEBG  44
  59. #define SGR_MAGENTABG   45
  60. #define SGR_CYANBG  46
  61. #define SGR_WHITEBG 47
  62. #define SGR_DEFAULTBG   49
  63.  
  64. /* these names refer to the implementation,  they are the preferred */
  65. /* names for use with the Amiga console device. */
  66. #define SGR_CLR0    30
  67. #define SGR_CLR1    31
  68. #define SGR_CLR2    32
  69. #define SGR_CLR3    33
  70. #define SGR_CLR4    34
  71. #define SGR_CLR5    35
  72. #define SGR_CLR6    36
  73. #define SGR_CLR7    37
  74.  
  75. #define SGR_CLR0BG  40
  76. #define SGR_CLR1BG  41
  77. #define SGR_CLR2BG  42
  78. #define SGR_CLR3BG  43
  79. #define SGR_CLR4BG  44
  80. #define SGR_CLR5BG  45
  81. #define SGR_CLR6BG  46
  82. #define SGR_CLR7BG  47
  83.  
  84.  
  85. /****** DSR parameters ******/
  86.  
  87. #define DSR_CPR     6
  88.  
  89. /****** CTC parameters ******/
  90. #define CTC_HSETTAB 0
  91. #define CTC_HCLRTAB 2
  92. #define CTC_HCLRTABSALL 5
  93.  
  94. /****** TBC parameters ******/
  95. #define TBC_HCLRTAB 0
  96. #define TBC_HCLRTABSALL 3
  97.  
  98. /****** SM and RM parameters ******/
  99. #define M_LNM   20  /* linefeed newline mode */
  100. #define M_ASM   ">1"    /* auto scroll mode */
  101. #define M_AWM   "?7"    /* auto wrap mode */
  102.  
  103. #endif  /* DEVICES_CONSOLE_H */
  104.